<template>
  <div class="home">
    <SubHome :count="count"></SubHome>
    <el-button type="primary" @click="handleCount">
      <el-icon style="vertical-align: middle">
        <Search />
      </el-icon>
      <span style="vertical-align: middle"> Search </span>
    </el-button>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { exportInMenu } from "@/api/login";
import SubHome from "./subHome.vue";
const count = ref(0);

const handleCount = async () => {
  count.value++;
  await exportInMenu();
};
</script>

<style scoped lang='less'>
</style>